package com.ybkj.daijia.server.service;

import com.ybkj.daijia.page.Page;
import com.ybkj.daijia.server.model.Company;
import java.util.List;

/**
 * @author Shine
 */
public interface CompanyService {

    List<Company> getCompanysById(String companyId);

    /**
     * @param name
     * @return name为null则查询出所有的信息，否则只查询出与name匹配的信息
     */
    public Page<Company> queryAll(String name);

    /**
     * @param company
     * @return
     */

    public Company create(Company company);

    public Company save(Company company);

    public void update(Company company, String basePath);

    /**
     * @param id
     * @return
     */
    public Company findOne(Long id);

    /**
     * 根据一组ID查询出管理员信息
     *
     * @param ids
     * @return
     */
    public List<Company> findByIdIn(Long[] ids);

    /**
     * 删除
     *
     * @param company
     */
//	public void delete(Company company);
    public List<Company> findAll();

    public Long countAll();

    public Company getMain();

    public Company findByCompanyName(String companyName);

    public Company findByCompanyWebURL(String companyWebURL);

    public Company findByAbbreviation(String abbreviation);

    public Company findByAppKey(String appKey);

    public List<Company> findByArea(Long areaId);

    public List<Company> findByAreaCityName(String cityName);

    public List<Company> queryAllData(String name);

}
